package com.xiyou.rmls.controller;

import com.xiyou.rmls.model.vo.guiderule.GuideRuleInfoParamVo;
import com.xiyou.rmls.service.guiderule.GuideRuleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试规则
 */
@RequestMapping("/guide_rule")
@RestController
public class TestGuideRuleInfoController {

    @Autowired
    GuideRuleInfoService guideRuleInfoService;

    /**
     * 生成引导式规则的规则文件
     *
     * @param guideRuleInfoParamVo 引导式规则的Vo
     * @return
     */
    @PostMapping("/build_guide_rule_drl")
    public String buildGuideRuleDrlInfo(@RequestBody GuideRuleInfoParamVo guideRuleInfoParamVo) {
        return guideRuleInfoService.buildGuideRuleDrlInfo(guideRuleInfoParamVo);
    }
}
